package com.leve.admin.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.NonNull;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.DBRef;

import javax.validation.constraints.Null;
import java.util.Date;


public class GhostGreeting {
    @ApiModelProperty(value = "标识", readOnly = true)
    @Null
    private String id;

    @ApiModelProperty(position = 1, value = "发送方", required = true)
    @DBRef
    @NonNull
    private Ghost sender;

    @ApiModelProperty(position = 2, value = "接收方", required = true)
    @DBRef
    @NonNull
    private Ghost receiver;

    @ApiModelProperty(position = 3, value = "来自:SCAN扫脸招呼,ALLURE心动招呼,NEARBY附近招呼",
            required = true)
    @NonNull
    private GhostFrom from;


    @ApiModelProperty(position = 6, value = "创建日期时间", readOnly = true)
    @CreatedDate
    private Date createdDate;

    @ApiModelProperty(position = 7, value = "最后修改日期时间", readOnly = true)
    @LastModifiedDate
    private Date lastModifiedDate;
}
